import fetch from 'utils/fetch';
//分页
export function page(query) {
    return fetch({
        url: '/api/admin/loanOrderApplyTown/orderAccounting',
        method: 'get',
        params: query
    });
}
// 导出
export function pageExport(query) {
    return fetch({
        url: '/api/admin/loanOrderApplyTown/orderAccountExport',
        method: 'get',
        params: query
    });
}
//应还金额回显
export function extensionAmount(id) {
    return fetch({
        url: '/api/admin/loanOrderApplyTown/extensionAmount/' + id,
        method: 'get'
    })
}
//提交展期、结清平账
export function flatAccount(obj) {
    return fetch({
        url: '/api/admin/loanOrderApplyTown/flatAccount',
        method: 'post',
        data: obj
    })
}